﻿using System;
using System.Windows.Input;
using estoque.ViewModel;

namespace estoque
{
    public class SaveCommand : ICommand
    {
        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;

        public void Execute(object parameter)
        {
            RepositoryVM.Center.Save();
        }
    }
}